package com.example.video.video_server.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 视频类别表
 * </p>
 *
 * @author yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="VideoCategory对象", description="视频类别表")
@Table(name = "video_category")
public class VideoCategory implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    @IsAutoIncrement
    @IsKey
    @Column
    private Integer id;

    @ApiModelProperty(value = "父id")
    @Column(name = "parent_id", comment = "父id", isNull = false)
    private Integer parentId;

    @ApiModelProperty(value = "类别名称")
    @Column(name = "name", comment = "类别名称", isNull = false)
    private String name;

    @ApiModelProperty(value = "标识")
    @Column(name = "sign", comment = "标识", isNull = false)
    private String sign;

    @ApiModelProperty(value = "图标")
    @Column(name = "icon", comment = "图标")
    private String icon;

    @ApiModelProperty(value = "排序")
    @Column(name = "sort", comment = "排序", isNull = false)
    private Integer sort;

    @ApiModelProperty(value = "0：启用     1：禁用")
    @Column(name = "status", comment = "0：启用     1：禁用", type = "char",length = 1, isNull = false)
    private String status;


}
